package com.jia.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName t_booking
 */
@TableName(value ="t_booking")
@Data
public class Booking implements Serializable {
    /**
     * 预约站点-用户
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户外键
     */
    @TableField(value = "uid")
    private Integer uid;

    /**
     * 站点外键
     */
    @TableField(value = "cid")
    private Integer cid;

    /**
     * 创建时间
     */
    @TableField(value = "createtime")
    private Date createtime;

    /**
     * 修改时间
     */
    @TableField(value = "updatetime")
    private Date updatetime;

    /**
     * 状态0:正在路上，1：已完成，2：预约超时
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 电池类型1：48v，2：60v
     */
    @TableField(value = "v")
    private Integer v;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
